package desktop.playerguide.splashmodel;

import pulpcore.Stage;
import pulpcore.image.CoreImage;
import pulpcore.sprite.ImageSprite;

public class LetterImage extends ImageSprite {
	
	private double gravitySpeed = 0.01;
	
	public LetterImage(CoreImage image, double x, double y) {
		super(image, x, y , 90.0, 90.0);
	}
	
	public LetterImage(CoreImage image, double x, double y ,double w, double h) {
		super(image, x, y , w, h);
	}
	
	@Override
	public void update(int elapsedTime) {
		super.update(elapsedTime);
		double newY = this.y.get() + gravitySpeed*elapsedTime;
		this.y.set(newY%Stage.getHeight());
	}

}
